import request from '../utils/request.js'
export default class Common {
  // 用户
  user = (name, params) =>
    request(`/user/v1/${name}`, {
      ...params,
    })
  // 系统
  system = (name, params) =>
    request(`/system/v1/${name}`, {
      ...params,
    })
  // 订单
  order = (name, params) =>
    request(`/order/v1/${name}`, {
      ...params,
    })
  // crc16测试
  crc = (params) =>
    request(`/user/v1/crc16Test`, {
      ...params,
    })
}
